#name : fun binary exact ci boundary number of events (p0 < p1)
# key : bin.exact.nevents.boundary.upper
# contributor: Shuguang Sun
# --
stats::qbinom(p = 1 - ${1:0.025}, size = ${2:n}, prob = ${3:p0}) + 1  # p0 < p1